Enriching Subclass Speci cations

نویسنده

  • Neelam Soundarajan
چکیده

The standard approach to reasoning about polymorphic (also called recursive or self) methods is in terms of method reenement. That is, if the correctness of a (polymorphic) method f of class B depends on certain properties of another method g of B, then in any subclass of B in which g is redeened, the designer must make sure that g continues to exhibit these properties. While this allows the designer of the derived class to avoid re-veriication of f, it does not allow us to associate, in the derived class, richer behavior with the polymorphic function. We propose an approach that, by including somewhat more information in the speciication of f, enables us to arrive, in the derived class, at a richer speciication of the function while at the same time avoiding re-veriication. The approach is illustrated on a simple example.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An Overview of Larch/C++: Behavioral Speci cations for C++ Modules

An overview is presented of the behavioral interface speci cation language Larch/C++. The features of Larch/C++ used to specify the behavior of C++ functions and classes, including subclasses, are described, with examples. Comparisons are made with other object-oriented specication languages. An innovation in Larch/C++ is the use of examples in function speci cations.

متن کامل

An Overview of Larch/C++: Behavioral Specifications for C++ Modules

An overview is presented of the behavioral interface speci cation language Larch/C++. The features of Larch/C++ used to specify the behavior of C++ functions and classes, including subclasses, are described, with examples. Comparisons are made with other object-oriented speci cation languages. An innovation in Larch/C++ is the use of examples in function speci cations.

متن کامل

Enriching volume modelling with scalar fields

A scalar eld is a generalisation of a surface function in dimension. Visualisation traditionally focuses on discrete speci cations of scalar elds (e.g., volume datasets). This paper discusses the role of continuous and procedural eld speci cations in volume visualisation and volume graphics, and the inter-operations between continuous and discrete speci cations. It demonstrates the di erent use...

متن کامل

Enriching Temporal Object Speci cations by Abduction

We look into abductive reasoning in the context of propositional temporal object speci-cation/veriication. Our aim is to complete a given speciication whenever some envisaged property does not hold. Properties can be both local (related to an object in isolation), or global (related to several interacting objects). Explanations are enabling constraints for actions, fairness requirements and in ...

متن کامل

Specifying the modi cation of extended state

This paper explores the interpretation of speci cations in the context of an object-oriented programming language with subclassing and method overrides. In particular, the paper considers annotations for describing what variables a method may change and the interpretation of these annotations. The paper shows that there is a problem to be solved in the speci cation of methods whose overrides ma...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1998